<link rel="stylesheet" type="text/css" href="__CDN__/assets/libs/bootstrap-table/dist/bootstrap-table.min.css"/>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="table-responsive">
        <table id="table" class="table table-striped table-bordered table-hover table-nowrap">
            <input  type="text" name="id" value="{$row.id}" style="display: none;">
            <thead style="font-size: 15px;">
                <tr>
                    <th style="background-color: #ffff00">订单状态：</th>
                    <th colspan="8">
                        {$orderStatusList[$row.order_status]}
                    </th>
                </tr>
                <tr>
                    <th></th>
                    <th style="background-color: #FF851B; text-align: center;" width="80">
                        {if condition="$row.order_status == 1 || $row.order_status == 5"}
                            <button type="button" class="btn btn-primary showdelivery">发货</button>
                        {/if}
                        {if condition="$row.order_status elt 1 || $row.order_status == 5"}
                            <button type="button" class="btn btn-primary showdelivery">修改地址</button>
                        {/if}
                        {if condition="$row.order_status == 2"}

                            <a class="btn-dialog" href="order/order/extended" data-area=["50%","50%"] title="物流">
                                延长发货
                            </a>

                        {/if}
                    </th>
                    <th width="20px"> </th>
                    <th>备注</th>
                    <th colspan="5" rowspan="3" width="100px" style="white-space:normal;word-break: break-all;">{$row.user_not}</th>
                </tr>
                <tr>
                    <th> </th>
                    <th> </th>
                    <th> </th>
                    <th> </th>
                </tr>
                <tr>
                    <th> </th>
                    <th> </th>
                    <th> </th>
                    <th> </th>
                </tr>
                <tr>
                    <th style="background-color: #ffff00">买家信息：</th>
                    <th style="background-color: #FF851B">昵称：</th>
                    <th>{$row.userone.username}</th>
                    <th style="background-color: #FF851B">收货信息：</th>
                    <th colspan="5" rowspan="2" width="100px" style="white-space: normal;word-break: break-all; ">
                        {$row.province}{$row.city}{$row.district}{$row.address}, {$row.name}, {$row.mobile},
                    </th>
                </tr>
                <tr>
                    <th> </th>
                    <th> </th>
                    <th> </th>
                    <th> </th>
                </tr>
                <tr>
                    <th style="background-color: #ffff00">订单信息：</th>
                    <th colspan="2" style="text-align: center;">商品</th>
                    <th>规格</th>
                    <th>单价</th>
                    <th>数量</th>
                    <th>实付款</th>
                    <th>积分</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td></td>
                    <td>订单编号：{$row.order_sn}</td>
                    <td>创建时间：{$row.create_time|datetime}</td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                {foreach name="OrderGoodsList" item="vo"}
                <tr>

                        <td></td>
                        <td><img src="{if condition='$vo.order_goods.main_image'} {$vo.order_goods.main_image} {else /} {$vo.goods_image} {/if}" width="100px"></td>
                        <td>{$vo.goods_name}</td>
                        <td>{$vo.order_goods.spec_value_str  == '' ?  '无' : $vo.order_goods.spec_value_str}</td>
                        <td>{$vo.goods_price}</td>
                        <td>{$vo.goods_num}</td>
                        <td>{$vo.price}</td>
                        <td>{$vo.discounts}</td>
                        <td></td>
                </tr>
                {/foreach}

                {if condition="$row.order_status != 6"}
                <tr>
                    <td style="background-color: #ffff00">物流信息：</td>
                    {if condition="$row.order_status < 2"}
                        <td colspan="8">包邮或到付</td>
                    {else /}
                        <td style="background-color: #FF851B">快递公司</td>
                        <td>{if condition="$row.delivery_name" } {$row.delivery_name} {/if}</td>
                        <td style="background-color: #FF851B">快递单号</td>
                        <td>{if condition="$row.delivery_id" } {$row.delivery_id} {/if}</td>
                        <td style="background-color: #FF851B">
                            <a class="btn-dialog" data-area=["50%","50%"] title="物流" href="{:url('order/courier/courierselect')}?ids={$row.id}">
                            查看物流</a>
                        </td>
                    {/if}
                </tr>
                {/if}
            </tbody>
        </table>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" class="btn btn-default btn-embossed layer-close">{:__('关闭')}</button>
        </div>
    </div>
</form>
